package com.guigu.equipmentservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.guigu.common.utils.R;
import com.github.pagehelper.PageInfo;
import com.guigu.common.utils.R;
import com.guigu.equipmentservice.entity.Equipment;
import com.guigu.equipmentservice.vo.BusinessmanEquipmentVo;
import com.guigu.equipmentservice.vo.EquipmentVo;
import com.guigu.equipmentservice.vo.EquipmentVo;
import io.swagger.models.auth.In;
import com.guigu.equipmentservice.vo.EquipmentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 设备表（存储卖家发布的二手机械信息） 服务类
 * </p>
 *
 * @author zcy
 * @since 2025-09-28
 */
public interface EquipmentService extends IService<Equipment> {

    /**
     * 前台-查询前14个设备品牌
     * */
    List<Equipment> selectfrontshisiEquipmentBrand();

    /**
     * 查询所有设备信息
     * @return
     */
    List<Equipment> selectAllEquipment();

    /**
     * 前台-根据条件分页查询设备信息
     * */
    PageInfo<Equipment> pageEquipmentByVo(Integer pageNum, Integer pageSize, EquipmentVo equipmentVo);


    PageInfo<Equipment> queryEquipmentPage(Integer pageNum, Integer pageSize, EquipmentVo equipmentVo);
    /**
     * 后台-链接查询设备和设备类型表
     * */
    R selectEquipmentByType(EquipmentVo vo, int pageNo, int pageSize);

    /**
     * 后台-根据设备id链接查询设备、设备类型表、用户表、设备图片表
     * */

    R selectEquipmentById(Long id);
    /**
     * 后台-审核设备
     * */
    R updateEquipmentStatus(Long id,Integer status);

    /**
     * 前台-查询关联设别图片表的所有设备信息
     */
    List<Equipment> selectAllEquipmentInfo();

    List<Equipment> selectEquipmentByBusinVo(Integer Bid,BusinessmanEquipmentVo vo);


    /**
     * 远程调用接口查询指定设备详情
     */
    Equipment selectEquipmentByIdFeign(Long id);

}
